package intgrafica.principal;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class TelaSuplemento extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.telasuplemento);
		Button cadastroSuplemento = (Button) findViewById(R.id.button7);
		cadastroSuplemento.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent it = new Intent(TelaSuplemento.this,
						InserirSuplemento.class);
				startActivity(it);
			}
		});
		Button agendarSuplemento = (Button) findViewById(R.id.button8);
		agendarSuplemento.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent it = new Intent(TelaSuplemento.this,
						TelaAgendarSuplemento.class);
				startActivity(it);
			}
		});
		Button consultarSuplementos = (Button) findViewById(R.id.button9);
		consultarSuplementos.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent it = new Intent(TelaSuplemento.this,
						ListaSuplementos.class);
				startActivity(it);
			}
		});

		Button calendario = (Button) findViewById(R.id.button10);
		calendario.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent it = new Intent(TelaSuplemento.this,
						TelaCalendario.class);
				startActivity(it);
			}
		});

		Button voltar = (Button) findViewById(R.id.button11);
		voltar.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				finish();
			}
		});
	}

}
